home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3633 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  976 b 

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: otdance@aol.com (OTDance)
  3. Newsgroups: comp.lang.c++
  4. Subject: how to pass matrix to function turbo c++?
  5. Date: 25 Jan 1996 03:44:38 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4e7ftm$11n@newsbf02.news.aol.com>
  9. Reply-To: otdance@aol.com (OTDance)
  10. NNTP-Posting-Host: newsbf02.mail.aol.com
  11.  
  12. I make the matrix - no problem in main. . .
  13.  
  14. I look for ways to pas the matrix to a function. . .big problems
  15.  
  16. I am passing a 2 dimensional array to a function now by first loading it
  17. into a one dimensional array of a different name, 
  18. ie:
  19.  for (x=0;x<8;x++)
  20. {
  21.    for (y=0;y<5;y++)
  22.  {
  23. char arr1[ct]=matrix[x][y];
  24. ct++;
  25.  }
  26. }
  27. passing that to the function, then exploding that info back into a 2
  28. dimensional array within the function so I can manipulate the data in a
  29. logical fashion.
  30.  
  31. I want to simply pass the original matrix. . .help.
  32. (turbo c++ beginner)
  33.  
  34. thanks in advance, Owen.
  35.